package com.example.demo_spring.aop.rent;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


@SpringBootApplication
public class Main {

    public static void main(String[] args) {

        ConfigurableApplicationContext context =
                SpringApplication.run(Main.class, args);
        System.out.println("SpringApplication.run done!");

        Landlord l = (Landlord) context.getBean("landlord");
        l.service();
    }
}

